// 无论是否声明都采取严格模式
'use strict';

// 单独向外暴露(不推荐)，输入方式：import {attr, func, cls, untieAttr, untieFunc} from './path'
export const attr = 'attr';
export function func(val) {
  return 'func ' + val;
};
export class cls {
  constructor(cls) {
    this.cls = cls;
  }
}
export const {attr: untieAttr, func: untieFunc} = {
  attr: 'untie-attr',
  func: (val) => {
    return 'untie-func ' + val;
  }
};

// {}列表向外暴露(推荐)，输入方式：import {attr, attrAs, func, cls} from './path'
const attr = 'attr';
function func(val) {
  return 'func ' + val;
};
class cls {
  constructor(cls) {
    this.cls = cls;
  }
}
export {attr as attrAs, func, cls};